<?php

define("dberror",     "1");         //链接数据库错误
define("querychannelerror",     "2");//查父频道错误
define("querycchannelerror",     "3");//查子频道错误
define("newsTJsonerror",     "4");//查子频道错误
define("queryarticlelerror",     "5");//查文章列表错误
define("queryarticlelcounterror",     "6");//查文章列表总数错误
define("paramerror",     "7");//解密错误

function errorHandle($errorcode)
{
        //error message
      //  $errorMsg = 'Error on line '.$this->getLine().' in '.$this->getFile()
       // .': <b>'.$this->getMessage().'</b> is not a valid E-Mail address';
       // return $errorMsg
    if($errorcode==dberror)
	{
	    echo "asdf";
	}
	else if($errorcode==queryarticlelerror)
	{
	    echo "queryarticlelerror";
	}
	else if($errorcode==queryarticlelcounterror)
	{
	    echo "queryarticlelcounterror";
	}
	else if($errorcode==queryapplisterror)
	{
	    echo "queryapplisterror";
	}
	else if($errorcode==paramerror)
	{
	    echo "paramerror";
	}
	
}


?>